﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PureMVC.Patterns;
using ELooker.utils;
using PureMVC.Interfaces;
using ELooker.MVC.Views.Mediators;

namespace ELooker.MVC.Contollers.App
{
    class CommandRegisterMVC:SimpleCommand
    {
        public override void Execute(INotification notification)
        {
            base.Execute(notification);

            UtilsLogger.trace("register MVC");

            MainWindow window = (MainWindow)notification.Body;
            //Facade.RegisterCommand

            //Mediators
            AppMainFacade.Instance.RegisterMediator(new MediatorMediaPanel(window.MediaPanel1));
            AppMainFacade.Instance.RegisterMediator(new MediatorMediaPanel(window.MediaPanel2));
            AppMainFacade.Instance.RegisterMediator(new MediatorMediaPanel(window.MediaPanel3));
            AppMainFacade.Instance.RegisterMediator(new MediatorMediaPanel(window.MediaPanel4));
        }
    }
}
